<!--导航栏-->
<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                                                                                    rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/onduty">配置管理</a>
                </li>
                <li class="active">排班计划</li>
            </ul>
        </div>
    </div>
</div>

<div style="margin: 10px">
    <form class="form-inline" role="form">
        <div class="form-group">
            <label style="padding: 0 0 5px">开始时间</label>
            <input type="text" class="form-control" name="startTime" ng-model="vm.p.startTime" required />
        </div>
        <div class="form-group">
            <label style="padding: 0 0 5px">结束时间</label>
            <input type="text" class="form-control" name="endTime" ng-model="vm.p.endTime"  />
        </div>
        <div class="col-lg-3">
            <div class="input-group">
                <div class="input-group-addon">支持组</div>
                <select class="form-control" ng-model="vm.rg" ng-options="rg.name for rg in vm.result.rgList"  ng-change="">
                    <option value="">-- 请选择支持组 --</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <input class="btn btn-primary" type="submit" value="确定" ng-click="onSelected(vm.rg.resolvegroupId)"/>
        </div>
        <div class="form-group" style="float:right;">
            <input class="btn btn-primary" type="submit" value="重新排班" ng-click="reScheduler(vm.rg.resolvegroupId)"/>
        </div>
    </form>

    <div style="margin: 10px 15px 10px;">
        支持组成员： {{vm.rg.users}}
    </div>
</div>


<div class="container-fluid">
    <div style="margin: 10px">
        <div class="row">
            <div class="col-sm-12 col-md-12 main" style="float: right">
                <label style="float: right">耗时：{{vm.result.ms}}ms</label>
                <h3 class="sub-header" style="display:inline-block"> 排班计划 </h3>
                <table id="list_table" class="table table-condensed"
                       data-toolbar="#toolbar"
                       data-search="true"
                       data-show-toggle="true"
                       data-show-columns="true"
                       data-show-pagination-switch="true"
                       data-pagination="true"
                       data-search-align="left"
                       data-buttons-align="left"
                       data-toolbar-align="left"
                       data-side-pagination="client">
                    <thead>
                    <tr>
                        <th data-field="SerialNumber" data-sortable="true" data-formatter="serialFormatter">序号</th>
                        <th data-field="id" data-sortable="true" data-formatter="schedulerIDOptFmt">操作</th>
                        <th data-field="resolvegroupName" data-sortable="true" data-formatter="resolvegroupSchedFmt">支持组</th>
                        <th data-field="resolvegroupId" data-sortable="true" >支持组id</th>
                        <th data-field="users" data-sortable="true" >第一联系人</th>
                        <th data-field="backups" data-sortable="true" >第二联系人</th>
                        <th data-field="schedulerId" data-sortable="true" >值班计划</th>
                        <th data-field="startTime" data-sortable="true" data-formatter="startTime2WeekDayFmt">周日期</th>
                        <th data-field="startTime" data-sortable="true" data-formatter="hll2StdTimeFmt">开始时间</th>
                        <th data-field="endTime" data-sortable="true" data-formatter="hll2StdTimeFmt">结束时间</th>
                        <th data-field="rotationType" data-sortable="true" data-formatter="rotationTypeFmt">排班方式</th>
                        <!--<th data-field="entries" data-sortable="true" >排班计划</th>-->
                        <!--<th data-field="department" data-sortable="true" >团队名称</th>-->
                        <th data-field="status" data-sortable="true" data-formatter="schStatusFmt">状态</th>
                        <th data-field="updateTime" data-sortable="true">更新时间</th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
</div>
